﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModel
{
   public class AlarmRule
    {

        public string rule_target { get; set; }
        public string alarm_rule_name { get; set; }

        public string alarm_type { get; set; }
 
        public int stop_max_minute { get; set; }
        public int out_max_minute { get; set; }
        public int oil_waste { get; set; }
 
        public bool enabled { get; set; }
 
    }

    public class AlarmNow
    {
        public AlarmRule rule { get; set; }

        public DateTime startTime { get; set; }
      
        public string alarmId { get; set; }

        public int times { get; set; }
        public AlarmNow()
        {

        }
        public AlarmNow(AlarmRule rule,DateTime startTime)
        {
            this.rule = rule;
            this.startTime = startTime;
          
        }

    }


}
